package com.atguigu.edu.pubshier.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: 洛尘
 * @since: 2023-10-22 22:15
 * @description:
 **/
@Mapper
public interface KeyWordSateMapper {

    @Select("select keyword,sum(keyword_count) keyword_count from dws_traffic_source_keyword_page_view_window  partition par#{date} " +
            "group by keyword")
    List<String> selectKeyWords(@Param("date") Integer date);
}
